/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.view.pdfView;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 *
 * @author jmj
 */
public class PdfSystoleViewer {

    private File pdfFile;
    private String title;
    private PDFFrame viewer;

    public PdfSystoleViewer(File file, String title) {
        this.title = title;
        this.pdfFile = file;
    }

    public void showPdf() throws FileNotFoundException, IOException {
        this.viewer = new PDFFrame(false, this.title);
        this.viewer.openFile(pdfFile);    
    }
}
